package com.example.common.util.enums;

/**
 * @Author juzipi
 * @Date 2021/7/15 8:36
 * @Info
 */
public enum BusinessEnum {


    OPTION_ERROR("500","操作失败"),
    HOSPITAL_UNOPEN("500","医院未开通"),
    PARAM_ERROR("500","参数有误"),
    NOT_FOUND_VALUE("500","未找到此值"),
    CODE_ERROR("500","验证码有误"),
    USER_BAN("500","用户被禁用"),
    TOKEN_ERROR("500","token解析失败"),
    MESSAGE_ERROR("500","发送验证码信息失败"),
    UN_AUTHORITY("403","没有权限"),
    NOT_LOGIN("401","未登录"),
    FILE_UPLOAD_ERROR("500","文件上传云失败"),
    NOW_NOT_RESERVE("500","当前时间不能预约"),
    CANCEL_ORDER_CAN_NOT("500","不能取消预约"),
    CANCEL_ORDER_ERROR("500","取消订单失败"),
    CONVERT_ERROR("500","类型转换失败")



    ;


    private final String code;
    private final String info;

    BusinessEnum(String code,String message){
        this.info = message;
        this.code = code;
    }

    public String getCode(){
        return code;
    }

    public String getInfo(){
        return info;
    }



}
